﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
namespace ModuleConfig
{
    
    public class CheckValue : INotifyPropertyChanged
    {
        public CheckValue()
        { }

        public CheckValue(bool v)
        {
            _isChecked = v;
        }

        private bool _isChecked = true;
        public bool isChecked
        {
            get { return _isChecked; }
            set
            {
                if (_isChecked != value)
                {
                    _isChecked = value;
                    NotifyPropertyChanged("isChecked");
                }
            }
        }
 
        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
